﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDr_Repair_LarBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDr_Repair_Lar;

        void Remove(IDr_Repair_Lar entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDr_Repair_Lar;

        /// <summary>
        /// 添加大修数据
        /// </summary>
        /// <param name="anniname"></param>
        /// <param name="analy_year"></param>
        void Insert(string anniname, string analy_year);


        /// <summary>
        /// 获取龟裂、重度纵向裂缝、重度横向裂缝的病害面积
        /// </summary>
        /// <param name="segid"></param>
        /// <returns></returns>
        double GetASPArea(string segid);

        /// <summary>
        ///  PCI折减值法
        /// </summary>
        /// <param name="segid"></param>
        /// <returns></returns>
        double GetPCI(string segid);
    }
}
